const fs = require('fs');

var request = require('request');
request('https://100boot.cn/wxShop/goods/getHotGoodsList?key=e8461145cff544f9ada893d12bba44f6&page=2&size=10', function (error, response, body) {
    if (!error && response.statusCode == 200) {
        // fs.writeFile('./index.json', body.toString(), function(err){
        //     if(err){
        //         console.log(err)
        //     }else{
        //         console.log('文件写入成功')
        //     }
        //
        // })
        console.log(body)
    }
});
